﻿<Window x:Class="GmaWebservice.Configurator.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="GMA Configurator" Height="368" Width="754" xmlns:my="clr-namespace:System;assembly=mscorlib"
        DataContext="{Binding RelativeSource={RelativeSource Self}}">
    <Window.Resources>
        <my:String x:Key="about_text">
        </my:String>
    </Window.Resources>
    <Grid>

        <TabControl TabStripPlacement="Left" SelectionChanged="TabControl_SelectionChanged">
            <TabControl.Resources>
                <Style TargetType="{x:Type TabItem}">
                    <Setter Property="Padding" Value="4" />
                    <Setter Property="HeaderTemplate">
                        <Setter.Value>
                            <DataTemplate>
                                <ContentPresenter Content="{TemplateBinding Content}">
                                    <ContentPresenter.LayoutTransform>
                                        <RotateTransform Angle="0" />
                                    </ContentPresenter.LayoutTransform>
                                </ContentPresenter>
                            </DataTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </TabControl.Resources>
            <TabItem Header="General" Width="140">
                <Grid>
                    <Label Content="Active Streams" Height="28" Name="label1" Margin="6,158,-6,115" FontWeight="Bold" />
                    <ListView ItemsSource="{Binding StreamingSessions}" Height="101" Margin="6,192,6,0" Name="listView2" VerticalAlignment="Top" Grid.Column="4" AlternationCount="1" >
                        <ListView.View>
                            <GridView>
                                <GridViewColumn Width="140" Header="Client" DisplayMemberBinding="{Binding Client}"/>
                                <GridViewColumn Header="Profile" DisplayMemberBinding="{Binding Profile}"/>
                                <GridViewColumn Header="File" DisplayMemberBinding="{Binding File}"/>
                                <GridViewColumn Header="Progress" DisplayMemberBinding="{Binding Progress}"/>
                            </GridView>
                        </ListView.View>
                    </ListView>
                    <Button Content="Test Webservice" Height="23" Margin="0,11,18,0" Name="cmdTestWebservice" VerticalAlignment="Top" HorizontalAlignment="Right" Width="114" Click="cmdTestWebservice_Click" />
                    <Label Content="Port" Height="28" HorizontalAlignment="Left" Margin="17,6,0,0" Name="label2" VerticalAlignment="Top" Width="62" />
                    <Label Content="Username" Height="28" HorizontalAlignment="Left" Margin="17,40,0,0" Name="label3" VerticalAlignment="Top" />
                    <Label Content="Password" Height="28" HorizontalAlignment="Left" Margin="17,74,0,0" Name="label4" VerticalAlignment="Top" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="104,11,0,0" Name="txtServicePort" VerticalAlignment="Top" Width="83" Text="44321" IsReadOnly="True" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="104,45,0,0" Name="txtUsername" VerticalAlignment="Top" Width="169" Text="admin" />
                    <TextBox Height="23" HorizontalAlignment="Left" Margin="104,76,0,0" Name="txtUserPassword" VerticalAlignment="Top" Width="169" Text="admin" />
                    <Button Content="Update" Height="23" HorizontalAlignment="Left" Margin="104,115,0,0" Name="cmdUpdateConfig" VerticalAlignment="Top" Width="75" Click="cmdUpdateConfig_Click" />
                </Grid>
            </TabItem>
            <TabItem Header="Databases" Name="TabDatabases">
                <Grid Name="grid1">
                    <Label Content="Videos" Height="28" HorizontalAlignment="Left" Margin="6,55,0,0" Name="lblVideoDb" VerticalAlignment="Top" />
                    <Button Content="Browse" Height="23" Margin="0,56,135,0" Name="btnBrowseVideos" VerticalAlignment="Top" Click="btnBrowseVideos_Click" HorizontalAlignment="Right" Width="46" />
                    <TextBox Height="23" Margin="135,56,187,0" Name="txtDbLocationVideos" VerticalAlignment="Top" />
                    <Button Content="Test" Height="23" HorizontalAlignment="Right" Margin="0,55,17,0" Name="btnTestVideos" VerticalAlignment="Top" Width="75" Click="btnTestVideos_Click" />
                    
                    <Label Content="MovingPictures" Height="28" HorizontalAlignment="Left" Margin="6,84,0,0" Name="lblMopiDb" VerticalAlignment="Top" />
                    <Button Content="Browse" Height="23" Margin="0,85,135,0" Name="btnBrowseMopi" VerticalAlignment="Top" Click="btnBrowseMopi_Click" HorizontalAlignment="Right" Width="46" />
                    <TextBox Height="23" Margin="135,85,187,0" Name="txtDbLocationMopi" VerticalAlignment="Top" />
                    <Button Content="Test" Height="23" HorizontalAlignment="Right" Margin="0,84,17,0" Name="btnTestMopi" VerticalAlignment="Top" Width="75" Click="btnTestMopi_Click" />
                    
                    <Label Content="MP-TvSeries" Height="28" HorizontalAlignment="Left" Margin="6,113,0,0" Name="lblTvSeriesDb" VerticalAlignment="Top" />
                    <Button Content="Browse" Height="23" HorizontalAlignment="Right" Margin="0,114,135,0" Name="btnBrowseTvSeries" VerticalAlignment="Top" Width="46" Click="btnBrowseTvSeries_Click" />
                    <TextBox Height="23" Margin="135,114,187,0" Name="txtDbLocationTvSeries" VerticalAlignment="Top" />
                    <Button Content="Test" Height="23" HorizontalAlignment="Right" Margin="0,113,17,0" Name="btnTestTvSeries" VerticalAlignment="Top" Width="75" Click="btnTestTvSeries_Click" />
                    
                    <Label Content="Music" HorizontalAlignment="Left" Margin="6,142,0,131" Name="lblMusicDb" />
                    <Button Content="Browse" Height="23" HorizontalAlignment="Right" Margin="0,143,135,0" Name="btnBrowseMusic" VerticalAlignment="Top" Width="46" Click="btnBrowseMusic_Click" />
                    <TextBox Height="23" Margin="135,143,187,0" Name="txtDbLocationMusic" VerticalAlignment="Top" />
                    <Button Content="Test" Height="23" HorizontalAlignment="Right" Margin="0,142,17,0" Name="btnTestMusic" VerticalAlignment="Top" Width="75" Click="btnTestMusic_Click" />
                    
                    <Label Content="Pictures" Height="28" HorizontalAlignment="Left" Margin="6,171,0,0" Name="lblPicturesDb" VerticalAlignment="Top" />
                    <Button Content="Browse" Height="23" HorizontalAlignment="Right" Margin="0,172,135,0" Name="btnBrowsePictures" VerticalAlignment="Top" Width="46" Click="btnBrowsePictures_Click" />
                    <TextBox Height="23" Margin="135,172,187,0" Name="txtDbLocationPictures" VerticalAlignment="Top" />
                    <Button Content="Test" Height="23" HorizontalAlignment="Right" Margin="0,171,17,0" Name="btnTestPictures" VerticalAlignment="Top" Width="75" Click="btnTestPictures_Click" />
                    <Label Content="MediaPortal Database Locations" Height="28" Margin="149,14,0,0" Name="label8" VerticalAlignment="Top" HorizontalAlignment="Left" Width="190" FontWeight="Bold" />
                    <Image Height="43" HorizontalAlignment="Left" Margin="23,6,0,0" Name="image1" Stretch="Uniform" VerticalAlignment="Top" Width="58" Source="/GmaWebservice.Configurator;component/Images/background_logo.png" StretchDirection="Both" />
                </Grid>
            </TabItem>
            <TabItem Header="Paths"></TabItem>
            <TabItem Header="Users" />
            <TabItem Header="Streaming" />
            <TabItem Header="Server Logs">
                <Grid>
                    <Label Content="Service Log" Height="28" Name="lblLogs" VerticalAlignment="Top" HorizontalAlignment="Center" FontWeight="Bold" />
                    <ListView Name="listView1" Margin="6,34,6,6" />
                </Grid>
            </TabItem>
            <TabItem Header="About">
                <Grid>
                    <Label Content="GmaWebservice" Height="28" Name="lblAbout" VerticalAlignment="Top" HorizontalAlignment="Center" FontWeight="Bold" />
                    <TextBlock Margin="28,34,6,0" Name="textBlock1" VerticalAlignment="Top">
                        Gma Webservice<LineBreak/>
                        let's you access all your local media through an api
                        <LineBreak/><LineBreak/><LineBreak/>
                        Contributors:<LineBreak/>
                        - Tobi (project leader, developer)<LineBreak/>
                        - DieBagger (developer)<LineBreak/>
                        - Oxan (developer)<LineBreak/>
                        
                        
                    </TextBlock>
                </Grid>
            </TabItem>
        </TabControl>
        <Label Content="lblServiceState" Height="28" Name="lblServiceState" Margin="12,0,0,65" HorizontalContentAlignment="Center" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="119" />
        <Button Content="Start" Height="23" Name="btnStartStopService" Width="75" Margin="31,0,0,12" Click="btnStartStopService_Click" HorizontalAlignment="Left" VerticalAlignment="Bottom" />
    </Grid>
</Window>
